import request from '@/utils/request'

export function insert(data) {
    return request({
        url: '/api/server/expertInfo/insert',
        method: 'post',
        data: data
    })
}

export function queryByPage(data) {
    return request({
        url: '/api/server/expertInfo/queryByPage',
        method: 'post',
        data: data
    })
}

export function deleteById(params) {
    return request({
        url: '/api/server/expertInfo/deleteById',
        method: 'get',
        params: params
    })
}

export function exportPdfById(uid) {
    return request({
        url: '/api/server/expertInfo/exportPdfById',
        method: 'get',
        params: {uid:uid}
    })
}


export function queryById(uid) {
    return request({
        url: '/api/server/expertInfo/queryById',
        method: 'get',
        params: {uid:uid}
    })
}

export function update(data) {
    return request({
        url: '/api/server/expertInfo/update',
        method: 'post',
        data: data
    })
}
export function queryFileInf (data) {
  return request({
    url: '/api/server/fileInfo/queryByPage',
    method: 'post',
    data
  })
}
